package com.housediyadmin.events.newsEvents
{	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/16
	 */
	public class GetNewsEvent extends Event
	{
		public static const GET_ALL_NEWS:String = "getAllNews";
		public static const UPDATE_NEWS_MODEL:String = "updateNewsModel";
		
		public var newsArray:ArrayCollection;
		
		/**
		 * 得到所有的News信息 
		 * @param type：必选参数
		 *             GET_ALL_NEWS 得到News;
		 *             UPDATE_NEWS_MODEL 更新NewsModel
		 * @param newsArray ：可选参数， 用来更新NewsModel
		 * 
		 */		
		public function GetNewsEvent(type:String, newsArray:ArrayCollection = null)
		{
			super(type);
			this.newsArray = newsArray;
		}
		
		override public function clone():Event
		{
			return new GetNewsEvent(type, newsArray);
		}
	}
}